package com.yzmdxt;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.client.discovery.DiscoveryClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 张桂州
 * @create 2017-07-19 14:06
 **/
@RestController
public class DcController {

    @Autowired
    DcClient dcClient;

    @GetMapping("/dc")
    public String dc(){

        return dcClient.consumer();
    }


}
